package com.mryin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: Mr.Yin
 * @create: 2021-02-26 22:54
 **/
// 注入配置属性
@ConfigurationProperties(prefix = "shiro")
@Data
@Component
public class ShiroProperties {
    private Integer hashIterations = 2;
    /**
     * 登陆URL
     */
    private String loginUrl;
    /**
     * 没有授权的跳转url
     */
    private String unauthorizedUrl;
    /**
     * 放行url
     */
    private String[] anonUrls;
    /**
     * 退出url
     */
    private String logoutUrl;
    /**
     * 拦截url
     */
    private String[] authcUrls;
}